<?php

/**
 * 栏目推荐
 */
Route::get('application/columnrecs', ['as'=> 'application.columnrecs.index', 'uses' => 'Application\ColumnrecController@index']);
Route::post('application/columnrecs', ['as'=> 'application.columnrecs.store', 'uses' => 'Application\ColumnrecController@store']);
Route::get('application/columnrecs/create', ['as'=> 'application.columnrecs.create', 'uses' => 'Application\ColumnrecController@create']);
Route::put('application/columnrecs/{columnrecs}', ['as'=> 'application.columnrecs.update', 'uses' => 'Application\ColumnrecController@update']);
Route::patch('application/columnrecs/{columnrecs}', ['as'=> 'application.columnrecs.update', 'uses' => 'Application\ColumnrecController@update']);
Route::delete('application/columnrecs/{columnrecs}', ['as'=> 'application.columnrecs.destroy', 'uses' => 'Application\ColumnrecController@destroy']);
Route::get('application/columnrecs/{columnrecs}', ['as'=> 'application.columnrecs.show', 'uses' => 'Application\ColumnrecController@show']);
Route::get('application/columnrecs/{columnrecs}/edit', ['as'=> 'application.columnrecs.edit', 'uses' => 'Application\ColumnrecController@edit']);
/**
 * 栏目添加推荐位数据
 */
// 一级栏目推荐视图
Route::get('application/columnrecs/recommend_datas/view',['as'=>'application.columnrecs.add_recommend_data','uses'=>'Application\ColumnrecController@addRecommendDatas']);
// 渲染datatable数据
Route::post('application/columnrecs/recommend_datas/datas',['as'=>'application.columnrecs.datas','uses'=>'Application\ColumnrecController@getDataByModel']);
// 保存推荐数据
Route::post('application/columnrecs/recommend_datas/datas/store',['as'=>'application.columnrecs.datas.store','uses'=>'Application\ColumnrecController@recommendStore']);
